# coding:utf-8
# __author__ = 'Gao'

from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^index/$', views.index, name='index'),
    url(r'^login/$', views.mylogin, name='login'),
    url(r'^register/$', views.register, name='register'),
    url(r'^logout/$', views.mylogout, name='logout'),
    url(r'^test/$', views.test),
    # (?P<article_id>\d+)路由会获取一个文章的id
    url(r'^detail/(?P<article_id>\d+)/$', views.article),
    url(r'^comment/(?P<article_id>\d+)/$', views.comment),
    url(r'^keep/(?P<article_id>\d+)/$', views.keep),
]
